package org.stvd.entities.workflow;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

/**
 * @Title WfLogs
 * @Destribution 流程日志
 * @author houzx
 * @date 2020年10月29日
 */
@Entity
@Table(name = "WF_LOGS")
public class WfLogs implements Serializable{

    private static final long serialVersionUID = 4644552800049090668L;
    
    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "customer_gen")
    @TableGenerator(name = "customer_gen", table = "KEYTABLE", pkColumnName = "keyname", valueColumnName = "keyvalue", pkColumnValue = "WfLogs_PK", allocationSize = 1)
    @Column(name = "ID")
    private Long id = null;
    
    @Column(name = "PROC_INST_ID")
    private String procInstId = "";
    
    @Column(name = "TASK_ID")
    private String taskId = "";
    
    @Column(name = "TASK_NAME")
    private String taskName = "";
    
    @Column(name = "OPERATOR")
    private String operator = "";
    
    @Column(name = "OPERATOR_NAME")
    private String operatorName = "";
    
    @Column(name = "OPERATE_TYPE")
    private String operateType = "";
    
    @Column(name = "OPERATE_NAME")
    private String operateName = "";
    
    @Column(name = "OPERATE_TIME")
    private Date operateTime = null;
    
    @Column(name = "OPERATE_CONTENT")
    private String operateContent = "";
    
    @Column(name = "REMARK")
    private String remark = "";
    
    @Transient
    private List<WfLogsAffix> affixList = null;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProcInstId() {
        return procInstId;
    }

    public void setProcInstId(String procInstId) {
        this.procInstId = procInstId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    public String getOperateName() {
        return operateName;
    }

    public void setOperateName(String operateName) {
        this.operateName = operateName;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public String getOperateContent() {
        return operateContent;
    }

    public void setOperateContent(String operateContent) {
        this.operateContent = operateContent;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<WfLogsAffix> getAffixList() {
        return affixList;
    }

    public void setAffixList(List<WfLogsAffix> affixList) {
        this.affixList = affixList;
    }
}
